package com.zzit.vjv.biz.impl.documentReview_impl.backend;

import com.zzit.vjv.biz.documentReview_biz.backend.BackendUpdBiz;
import com.zzit.vjv.dao.documentReview_dao.backend.BackendUpdDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("backendUpdBiz")
public class BackendUpdImpl implements BackendUpdBiz {


    @Resource(name = "backendUpdDao")
    private BackendUpdDao backendUpdDao;


    /**
     * 根据id修改状态方法(用于审核)
     * @param id id
     * @param status 状态
     * @return
     */
    @Override
    public int updateStatusById(Integer id, Integer status) {


        return id!=null&&status!=null?backendUpdDao.updateStatusById(id,status):0;
    }
}
